<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.typehandlers.base.TypeMatcher</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.typehandlers-module.html">Package&nbsp;typehandlers</a> ::
        <a href="pybindgen.typehandlers.base-module.html">Module&nbsp;base</a> ::
        Class&nbsp;TypeMatcher
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.typehandlers.base.TypeMatcher-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class TypeMatcher</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_90" name="uml_class_diagram_for_pybindge_90">
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#__init__" title="Constructor" alt="" coords="17,36,332,55"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#register_transformation" title="Register a type transformation object" alt="" coords="17,55,332,73"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#register" title="Register a new handler class for a given C type" alt="" coords="17,73,332,92"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" title="Returns a handler with the given ctype name, or raises KeyError." alt="" coords="17,92,332,111"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#items" title="Returns an iterator over all registered items" alt="" coords="17,111,332,129"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#add_type_alias" title="pybindgen.typehandlers.base.TypeMatcher.add_type_alias" alt="" coords="17,129,332,148"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html" title="Type matcher object: maps C type names to classes that handle those types." alt="" coords="16,11,333,149"/>
</map>
  <img src="uml_class_diagram_for_pybindge_90.gif" alt='' usemap="#uml_class_diagram_for_pybindge_90" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Type matcher object: maps C type names to classes that handle those 
  types.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.TypeMatcher-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Constructor</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="register_transformation"></a><span class="summary-sig-name">register_transformation</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">transformation</span>)</span><br />
      Register a type transformation object</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.register_transformation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.TypeMatcher-class.html#register" class="summary-sig-name">register</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">type_handler</span>)</span><br />
      Register a new handler class for a given C type</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.register">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_register-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_register-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_register" name="call_graph_for_register">
<area shape="rect" href="pybindgen.container.Container-class.html#__init__" title="container.Container.__init__()" alt="" coords="32,5,323,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#register" title="register()" alt="" coords="397,117,504,149"/>
<area shape="rect" href="pybindgen.container.Container-class.html#register_alias" title="container.Container.register_alias()" alt="" coords="5,61,349,93"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#__init__" title="cppclass.CppClass.__init__()" alt="" coords="41,117,313,149"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#register_alias" title="cppclass.CppClass.register_alias()" alt="" coords="15,173,340,205"/>
<area shape="rect" href="pybindgen.enum.Enum-class.html#set_module" title="enum.Enum.set_module()" alt="" coords="49,229,305,261"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser-module.html#normalize_type_string" title="ctypeparser.normalize_type_string()" alt="" coords="552,117,904,149"/>
</map>
  <img src="call_graph_for_register.gif" alt='' usemap="#call_graph_for_register" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">type_handler, type_transformation, type_traits</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" class="summary-sig-name">lookup</a>(<span class="summary-sig-arg">name</span>)</span><br />
      Returns a handler with the given ctype name, or raises KeyError.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.lookup">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_lookup-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_lookup-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_lookup" name="call_graph_for_lookup">
<area shape="rect" href="pybindgen.typehandlers.base.Parameter-class.html#new" title="Parameter.new()" alt="" coords="16,33,192,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" title="lookup()" alt="" coords="251,61,347,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReturnValue-class.html#new" title="ReturnValue.new()" alt="" coords="7,89,201,121"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#_raw_lookup_with_alias_support" title="_raw_lookup_with_alias_support()" alt="" coords="396,5,729,37"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#__str__" title="ctypeparser.CType.__str__()" alt="" coords="427,61,699,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" title="ctypeparser.TypeTraits.__init__()" alt="" coords="405,117,720,149"/>
</map>
  <img src="call_graph_for_lookup.gif" alt='' usemap="#call_graph_for_lookup" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="items"></a><span class="summary-sig-name">items</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns an iterator over all registered items</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.items">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="add_type_alias"></a><span class="summary-sig-name">add_type_alias</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">from_type_name</span>,
        <span class="summary-sig-arg">to_type_name</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.add_type_alias">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_add_type_alias_2-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_add_type_alias_2-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_add_type_alias_2" name="call_graph_for_add_type_alias_2">
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#add_type_alias" title="add_type_alias()" alt="" coords="224,5,395,37"/>
<area shape="rect" href="pybindgen.typehandlers.base-module.html#add_type_alias" title="add_type_alias()" alt="" coords="5,5,176,37"/>
</map>
  <img src="call_graph_for_add_type_alias_2.gif" alt='' usemap="#call_graph_for_add_type_alias_2" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Constructor</p>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="register"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">register</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">type_handler</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.register">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_register-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for_register-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_register" name="call_graph_for_register">
<area shape="rect" href="pybindgen.container.Container-class.html#__init__" title="container.Container.__init__()" alt="" coords="32,5,323,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#register" title="register()" alt="" coords="397,117,504,149"/>
<area shape="rect" href="pybindgen.container.Container-class.html#register_alias" title="container.Container.register_alias()" alt="" coords="5,61,349,93"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#__init__" title="cppclass.CppClass.__init__()" alt="" coords="41,117,313,149"/>
<area shape="rect" href="pybindgen.cppclass.CppClass-class.html#register_alias" title="cppclass.CppClass.register_alias()" alt="" coords="15,173,340,205"/>
<area shape="rect" href="pybindgen.enum.Enum-class.html#set_module" title="enum.Enum.set_module()" alt="" coords="49,229,305,261"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser-module.html#normalize_type_string" title="ctypeparser.normalize_type_string()" alt="" coords="552,117,904,149"/>
</map>
  <img src="call_graph_for_register.gif" alt='' usemap="#call_graph_for_register" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Register a new handler class for a given C type</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> - C type name</li>
        <li><strong class="pname"><code>type_handler</code></strong> - class to handle this C type</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="lookup"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">lookup</span>(<span class="sig-arg">name</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#TypeMatcher.lookup">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_lookup-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for_lookup-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_lookup" name="call_graph_for_lookup">
<area shape="rect" href="pybindgen.typehandlers.base.Parameter-class.html#new" title="Parameter.new()" alt="" coords="16,33,192,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" title="lookup()" alt="" coords="251,61,347,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReturnValue-class.html#new" title="ReturnValue.new()" alt="" coords="7,89,201,121"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#_raw_lookup_with_alias_support" title="_raw_lookup_with_alias_support()" alt="" coords="396,5,729,37"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#__str__" title="ctypeparser.CType.__str__()" alt="" coords="427,61,699,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" title="ctypeparser.TypeTraits.__init__()" alt="" coords="405,117,720,149"/>
</map>
  <img src="call_graph_for_lookup.gif" alt='' usemap="#call_graph_for_lookup" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Returns a handler with the given ctype name, or raises KeyError. 
  Supports type transformations.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>name</code></strong> - C type name, possibly transformed (e.g. MySmartPointer&lt;Foo&gt;
          looks up Foo*)</li>
    </ul></dd>
    <dt>Returns: type_handler, type_transformation, type_traits</dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:32 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
